<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    		xmlns:ui="http://java.sun.com/jsf/facelets"
	  			xmlns:h="http://java.sun.com/jsf/html"
	  			xmlns:f="http://java.sun.com/jsf/core"
                xmlns:sf="http://www.springframework.org/tags/faces"
                xmlns:sec="http://www.springframework.org/security/facelets/tags"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
				template="/WEB-INF/layouts/template.xhtml">

<ui:define name="main">
<div id="main">
	<div id="wrapper" class="yui-b">
		<h3 class="title">${msg.title_group_review} ${group.name}</h3>
		<div id="mainContent">
			<h:form id="group">
				<a4j:mediaOutput element="img" createContent="${imageBean.paintGroup}" value="${group.logo}" cacheable="false" mimeType="${imageFileUpload.mimeType}" styleClass="userimage" />
				<h:panelGroup rendered="${!(empty group.address.street and empty group.address.city)}">
					<div class="field">
						<div class="label">${msg.address}</div>
						<h:panelGroup rendered="${!(empty group.address.street)}">
							<div class="output">${group.address.street}<h:outputText rendered="${!(empty group.address.number)}">, ${group.address.number}</h:outputText></div>
						</h:panelGroup>
						<h:panelGroup rendered="${!(empty group.address.city)}">
							<div class="output">${group.address.city} ${group.address.zipcode} ${group.address.country}</div>
						</h:panelGroup>
					</div>
				</h:panelGroup>
				<h:panelGroup rendered="${!(empty group.email)}">
					<div class="field">
						<div class="label">Email:</div>
						<div class="output">${group.email}</div>
					</div>
				</h:panelGroup>
				<h:panelGroup rendered="${!(empty group.phone)}">
					<div class="field">
						<div class="label">Phone:</div>
						<div class="output">${group.phone}</div>
					</div>
				</h:panelGroup>
				<h:panelGroup rendered="${!(empty group.fax)}">
					<div class="field">
						<div class="label">Fax:</div>
						<div class="output">${group.fax}</div>
					</div>
				</h:panelGroup>
				<h:panelGroup rendered="${!(empty group.url)}">
					<div class="field">
						<div class="label">Url:</div>
						<div class="output">${group.url}</div>
					</div>
				</h:panelGroup>
				<div style="clear: both; height: 5px;" />
				<div>
					<sf:commandLink id="edit" action="edit"><div class="button">${msg.edit}</div></sf:commandLink>
					<sf:commandLink id="changeLogo" action="changeLogo"><div class="button">${msg.changelogo}</div></sf:commandLink>
				</div>
			</h:form>
		</div>
	</div>
</div>
</ui:define>
</ui:composition>